package com.attendance.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.attendance.converter.LocalDateConverter;
import com.attendance.converter.LocalTimeConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
/*
  门禁打卡视图类
 */
public class EntranceVO {
    /**
     * 显示日期
     */
    @ExcelProperty(value = "日期",converter = LocalDateConverter.class)
    private LocalDate date;
    /**
     * 学生学号
     */
    @ExcelProperty("学号")
    private String number;
    /**
     * 学生姓名
     */
    @ExcelProperty("姓名")
    private String name;
    /**
     * 打卡设备
     */
    @ExcelProperty("打卡设备")
    private String equipment;
    /**
     * 显示时间
     */
    @ExcelProperty(value = "打卡时间",converter = LocalTimeConverter.class)
    private LocalTime time;

}
